# Different landing page for desktop vs mobile theme?

**URL:** https://meta.discourse.org/t/different-landing-page-for-desktop-vs-mobile-theme/46019
**Category:** Feature
**Created:** [June 18, 2016, 11:42pm UTC](https://meta.discourse.org/t/different-landing-page-for-desktop-vs-mobile-theme/46019 "2016-06-18T23:42:45Z")
**Posts on this page:** 1
**Showing post:** 36

<div class="post-metadata">

### Author: ![msinger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/msinger/32/144985_2.png) [@msinger](https://meta.discourse.org/u/msinger)
#### Post date: [June 29, 2019, 11:47am UTC](https://meta.discourse.org/t/different-landing-page-for-desktop-vs-mobile-theme/46019/36 "2019-06-29T11:47:08Z")

</div>

I originally found this topic when searching for a solution to my problem:

> [@How to default to latest on mobile and categories+latest on desktop?](https://meta.discourse.org/t/how-to-default-to-latest-on-mobile-and-categories-latest-on-desktop/55716):
>
> Is there a way to default the frontpage to display latest page on mobile, while on desktop displaying the categories+latest combined view? I’m currently trying to figure this out.

As it explains, I have my forum set up to display categories + latest since I don’t only want to display the latest on desktop. Here are the two Discourse settings that make that layout possible:

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/a/4a03157581d87a9bdb49064db9c70bec86f6e672.png)

It’s the ideal layout for me since it both displays the categories for users looking to post something new and makes the latest available for other people who are just coming back to see what’s new.

For anyone reading along who wants to do the same thing, here’s what you need to do:

1. Go to the **Edit CSS/HTML** section of your theme:

2. Add the following script in the **Mobile** → **Header** section (so it only affects visitors on mobile devices):

  

**Update:** The [Forced Mobile Homepage](https://meta.discourse.org/t/force-mobile-homepage/95705) theme component linked above is probably a better way to accomplish this.

---

_[View the full topic](https://meta.discourse.org/t/different-landing-page-for-desktop-vs-mobile-theme/46019)._
