Make mobile changes work with main layout