How to Redirect Website to a Mobile Version when Accessed on a Mobile Device code example
Example: How to Redirect Website to a Mobile Version when Accessed on a Mobile Device
if (screen.width <= 800) { window.location = "http://m.domain.com";}
if (screen.width <= 800) { window.location = "http://m.domain.com";}