How to remove the online style of modal?

I created a code that displays a link to open a modal window.

The problem is that the text comes out of the window.

When I inspect the code of my page, there is an online style style="max-height: 570px;"

How to remove the online style of modal ?

  public function buildPaneForm(array $pane_form, FormStateInterface $form_state, array &$complete_form) {
    $store_name = $this->order->getStore()->getName();
    $store_id = $this->order->getStoreId();
    $pane_form['#attached']['library'][] = 'core/drupal.dialog.ajax';
    $attributes = [
      'attributes' => [
        'class' => 'use-ajax',
        'data-dialog-type' => 'modal',
        'data-dialog-options' => Json::encode([
          'width' => auto,
        ]),
      ],
    ];

enter image description here