if <screen.width <= 699) { if (document.referrer.indexOf(‘mobile.html’) == -1){ document.location = “mobile.html”; }}