I recently made a website and for what ever reason it looks really odd on moblie with over lapping Divs etc. I coded this:
window.addEventListener("resize", function(){
var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
if (width <= 1632 ) window.location.replace("https://officialivytech.com/mobileindex.html");
});