Hide/show table columns

Hey,
to optimize table content for desktop & mobile i currently use 2 collapsed tables and a dropdown to select (expand) one of them. But it’s getting ridicolous if I want to add a 3rd option to select (2nd mobile view)
If $w namespace would contain an option to hide/show columns of a table this could all be done with a single table.