Which browser loads the correct mobile display?

Tried Edge, Firefox, Brave, and Chrome. None of them are displaying the correct mobile view, I am trying to modify the mobile drop down menu but its showing this desktop view menu.

On my iPhone Safari, Chrome display correctly.

The usual way has been by adding ?mobile_view=1 to the end of the URL. Discourse is moving towards responsive design based on viewport size, so depending on the theme, this override might not continue to work.

1 Like

Are you referring to the navigation menu site setting?

1 Like

I actually believe that was removed a few days ago unfortunately:

3 Likes

yea the ?mobile_view=1 is legacy and considered deprecated - the newer mobile styling was enabled last year:

not sure what you’ve done on your own forum for customizations, but i cannot repro this problem on any instance or device. does it do it in safe mode?

4 Likes

I managed to get it to display the Mobile view on Chrome, still not able to get it to display mobile on Firefox, Edge, or Brave browser.

Do I need Viewport break points in all my mobile code? Do I need to place it in the Mobile section? Most of my mobile CSS is just color changes, header icons, and sidebar width, emoji/font sizes. So doesn’t seem like I need any specific viewport settings.

I was able to fix the code I needed:

/* ==========================================================================
   MOBILE DROPDOWN MENU - ACTIVE STATE
   ========================================================================== */

/* 1. Force the active link text to black */
.d-modal__body .dropdown-menu li.active a,
.d-modal__body .dropdown-menu li.active {
    color: #000000 !important;
}

/* 2. Touch-specific feedback (Discourse Standard) */
html.discourse-touch {
    /* Turn text black while the finger is pressing down */
    .d-modal__body .dropdown-menu li a:active {
        color: #000000 !important;
    }

}

/* 3. Ensure other nav items follow the rule */
.dropdown-menu li a {
    transition: color 0.1s ease;
}

I had some @media css queries that were messing up Brave browser on mobile loading correctly it seems.