Do any of the following:
Change the items in the toolbar: Add, remove, and rearrange toolbar items by on your Mac, choose Safari > Preferences, then click Tabs.
Choose where to put tabs.
Compact: Tabs move up to the toolbar. The active tab is the Use apps in Split View on Mac