I\'m currently using CSS media queries to target some small/medium screen devices like this:
@media screen and (min-device-width: 480px) { ... } @media screen
A JavaScript solution
if (window.matchMedia("(min-device-width: 480px)").matches { // modify dom }