You can check whether your app is running in Studio (design mode) or Player (live app) using the Host object.
isAppInDesignMode = StartsWith(Host.Version, "PowerApps-Studio");
This returns true in Studio and false in Player.
Why it matters
- Show test or debug features only in Studio.
- Handle features differently for real users.
- Avoid errors by adding fallback options in Player.


