Can anyone please help me to render theme_table data in vertical format instead of horizontal format ?
Currently horizontal table is overflowing the page and breaking breaking points.

My current code :

```
    $build['table'] = [
      '#type' => 'table',
      '#header' => $header,
      '#rows' => $rows,
      '#empty' => $this->t('No content has been found.'),
    ];

    return $build;
```
It generates following table but I wanted it in vertical table format.Where header is in left and row is in right instead of header in top and rows at bottom.

I am using Drupal 9.3.9 with Bartik theme.

[![Horizontal table Overflow][1]][1]


  [1]: https://i.sstatic.net/1JUHh.png