Fix rendering issues on mobile