Fixes misalignment issues on mobile device rotation