# Mobile View Loading different HTML as compared to Desktop

**URL:** https://meta.discourse.org/t/mobile-view-loading-different-html-as-compared-to-desktop/259844
**Category:** Development
**Created:** [March 29, 2023, 11:55am UTC](https://meta.discourse.org/t/mobile-view-loading-different-html-as-compared-to-desktop/259844 "2023-03-29T11:55:18Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [March 29, 2023, 1:08pm UTC](https://meta.discourse.org/t/mobile-view-loading-different-html-as-compared-to-desktop/259844/2 "2023-03-29T13:08:37Z")

</div>

Mobile and desktop view use different HTML templates for some pages, so you’ll need to style them separately. Within your theme you can have mobile or desktop specific stylesheets, the structure of theme CSS is covered here: [Structure of themes and theme components](https://meta.discourse.org/t/structure-of-themes-and-theme-components/60848)

You can also toggle mobile view on desktop to make development easier

> [@Developing Discourse Themes & Theme Components](https://meta.discourse.org/t/developing-discourse-themes-theme-components/93648/1):
>
> You can preview the mobile view on a desktop device by appending `?mobile_view=1` to the end of the URL (`?mobile_view=0` switches back to Desktop).

---

_[View the full topic](https://meta.discourse.org/t/mobile-view-loading-different-html-as-compared-to-desktop/259844)._
