Both current Firefox for Android and Safari 17 (Beta) have a bug where display-mode: standalone doesn’t return true when running standalone, that’s probably what’s broken.
Hi Timo, me again :) I ended up applying for the backend position because I didn’t see your last comment. I haven’t received a response (18.02.23), is there a way to check? Thanks!