Please don't use JavaScript to determine which layout version to use on a device, otherwise the layout may shift. I spotted a customer loading a desktop version by default and using JS to load the mobile version on a mobile device, and was able to see the DOM diff by dis-/enabling JS in DevTools.
Comments