Which browser loads the correct mobile display?

AI-generated summary

In a support discussion regarding mobile display issues, user hipp0 reported that their custom mobile dropdown menu was displaying the desktop view across Edge, Firefox, Brave, and Chrome, despite working correctly on iPhone Safari. ToddZ initially suggested using the ?mobile_view=1 URL parameter, but darkpixlz and Lilly clarified that this legacy method is deprecated and Discourse has transitioned to responsive design based on viewport size. Lilly noted she could not reproduce the issue and asked if the problem persisted in safe mode. Ultimately, hipp0 resolved the issue by identifying conflicting @media CSS queries in their code. They provided the corrected CSS snippet, which now properly forces active link colors and touch feedback, allowing the mobile view to display correctly on Chrome, though they noted some lingering discrepancies in Firefox, Edge, and Brave.

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.

Are you referring to the navigation menu site setting?

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

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?

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.