Prevent content flash on mobile devices