Generally speaking you can only use CSS to style, show and hide things. So if you added all the tabs and then use CSS selectors you could use media queries to show and hide different tabs based on the width of the screen.
that should work
You’ll probably need to use the ‘nth child’ css selector from a parent DOM node