 <p>The best way would be through feature detection in the browser. Since there is not a standard way of detecting touch through CSS. I would just do this JavaScript:</p> <pre><code>if ('ontouchstart' in document) { // Bring in the necessary CSS optimized for touch } </code></pre>