bug: css class .plt-desktop is used in native android

Author: lil5Created Aug 26, 2024Updated Sep 11, 2026
Labelspackage: coretype: bug

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

.plt-desktop class is set to the html element in native android

Expected Behavior

Previously plt-desktop was only used in pwa mode and not used in the native app.

Steps to Reproduce

add the following to your css code css

html.plt-desktop {
  desplay: none;
}

Run in;

  1. native ios (selector is not used)
  2. pwa (selector is used)
  3. native android (selector is used)

Code Reproduction URL

https://github.com/lil5/bug-1

Ionic Info

Ionic:

Ionic CLI : 7.2.0 (/opt/homebrew/lib/node_modules/@ionic/cli) Ionic Framework : @ionic/react 8.2.7

Capacitor:

Capacitor CLI : 6.1.2 @capacitor/android : 6.1.2 @capacitor/core : 6.1.2 @capacitor/ios : 6.1.2

Utility:

cordova-res : not installed globally native-run (update available: 2.0.1) : 1.7.3

System:

NodeJS : v22.5.1 (/opt/homebrew/Cellar/node/22.5.1/bin/node) npm : 10.8.2 OS : macOS Unknown

Additional Information

It would be nice if this is added as a breaking change in the changelog for ionic 8

Source: ionic-team/ionic-framework