Hide other tab menus in mobile

Is there a way to hide the highlighted tabs in mobile? I tried adding this ->extraAttributes('class' => 'hidden-tabs') to avoid messing up the other tabs but the problem is, I think the hidden-tabs class is being added to the tabs content not the tabs button so I can't select it with the added class and display it none.
image.png
Was this page helpful?