I'm building a site that has an "Export" button, which rearranges the page slightly then launches the Print dialog. It allows users on desktop to print or save the page as PDF.
However, we also have mobile users. On mobile, the button makes no sense: mobile browsers don't (as far as I know) even have print capability.
How can I hide the button using a media query (or similar) on mobile devices? The safest bet seems to be to detect the operating system, and hide it if Android, iOS or similar?