I've spend the last day researching a good deal and trying various methods using css media queries with the most common solution as targeting a min-width of 1200px. However with the introduction of hi-res mobile devices such as Amazon Kindle Fire HDX and some ridiculous 4K smart phones, this won't suffice.
I'm thinking to go down the route of using CSS media query to target a minimum width of 1200px in addition to a javascript library to detect mobile devices and invert the CSS of the media query.
I know of Modernizer but this has gone down the route of modular builds as opposed to a single CDN source. I'd prefer a light-weight library that is maintained to be up-to-date so I don't have to worry about future devices - any recommendations?
Finally... is there a more reliable and easier method to achieve desktop only detection?
An important note that I failed to mention is that I'm simply not concerned about device capabilities. I simply want to omit display of advertisements on the page if not mobile - this does not require any fancy features in the browser/device!
I know UA sniffing is a bad idea, but is it 100% certain that all mobile devices include the word "mobile" in the User Agent?