Since this component has been marked broken, I put together a replacement that works with current Discourse versions: Mobile Latest Homepage
It avoids the deprecated site.mobileView entirely, using window.matchMedia for viewport detection and Ember’s service:router for the redirect. It also remembers the user’s last choice between Latest and Categories for the duration of their session, so navigating back to the homepage respects their preference.
Tested on iPhone (lands on Latest), iPad landscape (two-column Categories+Latest unchanged), and desktop (unchanged).