In Yii 1.x, you need to change the view-files, if in $_SERVER['HTTP_USER_AGENT'] is a word: MobBrowser for example.
In the protected/components/Controller.php file, I added:
class Controller extends CController { public function render($view,$data=null,$return=false) { if ($_SERVER['HTTP_USER_AGENT']=='MobBrowser') $view = 'm_' . $view; return parent::render($view,$data=null,$return=false); } } Everything works, but can it somehow be more properly done?