put the php code for mobile detection in the config.php file. Then, if mobile detected, you use a different definition for the themes directory.
if($ismobile){
define('DIR_TEMPLATE', 'C:\wamp\www\opencart/catalog/view/themeMobile/');
}else{
define('DIR_TEMPLATE', '/var/www/pharmalife365.com/catalog/view/themeMobile/');
}
As long as your theme has the same name on both folders, this should work :D