How to disable the Mobile site through coding?
Select the UsersController.php file from app/controller/UsersController.php
In UsersController.php , Hide the function named “beforerender()” and in function login() hide the following lines
$this->layout = “mobilelayout”;
By hiding these lines in the coding, the Mobile website can be disabled.
Note: To enable the Mobile website, revert the above changes in that same file.