I need to display my PHP data is quite different tables on desktop and mobile phone. At the moment I generate both versions in one webpage and then hide the inappropriate one using media queries. Is there a more elegant way of achieving this? (the difference is too great to use, for example, this procedure)