Fixed flashing on initial page load on mobile