Tweaks to fix some issues on mobile browsers