What is a good way to restrict some code to Mobile only?

I would like to restrict some <div> units in my theme to display on mobile devices only (not tablets either). What's the simplest way to achieve this? Perhaps define a CSS class "mobile-only" and use it? If so, what should be the CSS code for it?