Choose theme depending on the USER_AGENT How do I use the mobile theme if the $_SERVER['HTTP_USER_AGENT'] is mobile, and use the desktop theme if it is desktop?
I would suggest you to use browsecap module to detect what browser users use and switchtheme module to switch to correct theme depending on the browser they use.