I have a print button on my map that I would like to hide if the user is accessing the map from a mobile device. I have a media query set up
@media (max-width:767px) {
#btnPrint {
visibility:hidden
}
}
but the problem is the wide range of resolutions available on mobile devices. I could easily have a user hitting the site with a desktop, where I do want them to have a print button. It seems like a media query isn't going to cover all the bases. It seems to be OK for a typical phone, but not for something like a tablet.
Is there another (or better) way to handle this?