I will present one of the ways to make features selection on mobiles.
To achieve our goal we have to:
Find out which way app was launched
For that the Window interface’s
matchMedia()method seems to be good (matchMedia | Can I use... Support tables for HTML5, CSS3, etc)
Track when the display mode changes
EventListener to listen for changes to the
Using conditional CSS like:
@media all and (display-mode: standalone)
For more please read https://web.dev/customize-install/#detect-launch-type where are code samples.
Potencial problem could be updating CSS files - it takes much time. Implementig above functionality seems to be pretty simple.
Any feedback will be appreciated:)