How to make a table that slides horizontally on mobile

Changing the number of columns will not affect the height of the table. Changing the number of rows or the height of the contents of the cells will change the height of the table. Perhaps you need to clarify what you want.

If as requested, try the examples in this conversation: