Shared layout code from mobile_page (interior)