Add mobile detect logic in index.php