Fix switching between mobile and desktop front page