This allows users to switch between mobile and desktop modes.