By PWA mode do you mean when it is installed to the homescreen?
I think the display-mode
media query can be used for this, but I haven’t done so before: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/display-mode
By default PWA installed to homescreen with this plugin gets minimal-ui
. So you could target that via a CSS rule like:
@media all and (display-mode: minimal-ui) {
body {
/* ... */
}
}
You could put that media query in the media
attribute of a link[rel=stylesheet]
element.