The site has 2 templates for the desktop and for the mobile version. And depending on the device, you need to display the desired one. I do this, I determined 2 templates for the site, first mobile with the condition ( siteType=='pda' ), then normal. In the file init.php I do a check.
$mobi = new \Olepro\Classes\Helpers\MobileDetect(); if($mobi->isMobile() && !isset($_COOKIE['siteType']) && !$_GET['type']) { LocalRedirect("/?type=pda"); exit; } if (isset($_GET['type'])) { switch ($_GET['type']) { case 'pda': setcookie('siteType', 'pda', time() + 3600 * 24 * 30, '/'); define('siteType', 'pda'); break; default: setcookie('siteType', 'original', time() + 3600 * 24 * 30, '/'); define('siteType', 'original'); } } else { $checkType = ''; if (isset($_COOKIE['siteType'])) $checkType = $_COOKIE['siteType']; switch ($checkType) { case 'pda': define('siteType', 'pda'); break; default: define('siteType', ''); } } But it works through time. Those. you go to the site from your mobile, the desktop version opens, you update the mobile version page appears. You come back, it can appear either a mobile or desktop version, as lucky. I suspect that this is some kind of a jamb with a cache, but I'm definitely not sure. Never worked with Bitrix