web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Using StartScreen to N...
Power Apps
Answered

Using StartScreen to Navigate between Desktop and Mobile

(0) ShareShare
ReportReport
Posted on by 143

I'm trying to make the app Startscreen funtion so that it automatically loads the screen based on. the device (Mobile & Desktop)

 

I added this to the StartScreen property

If(App.Width> 600, DesktopScreen, MobileScreen)

 

Also tried this one

If(App.ActiveScreen.Width = ScreenSize.Small, MobileScreen, DesktopScreen)

 

Both of these dont work

Categories:
I have the same question (0)
  • Verified answer
    Kirkby Profile Picture
    659 Moderator on at

    Hello.

    Use Host.OSType ,  

     

    Values are...

    Windows
    macOS
    iOS
    Android
    Linux

     

    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/object-host 

  • johnnykalsi Profile Picture
    143 on at

    Thank you..didnt even know about this property

  • Kirkby Profile Picture
    659 Moderator on at

    As it is described, using Host is not the ultimate solution. It is recommended to use the Size property of the Screen control, as you first intended.  

     

    "It's tempting to use Host to tailor an app to a specific device or browser. This is dangerous as Power Apps is designed to be run on a wide spectrum of hardware and software platforms and your Host based logic may not account for them all and they will change over time. The better approach is to use information that is more abstracted and not tied to specific hardware and software. For example, use the Size property of the Screen control to tailor a screen to show less or reorganize information when running on a smaller device such as a phone."

     

    However, many people use Host because the likelihood of critical problems occurring is very low.😀

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 509 Most Valuable Professional

#2
Haque Profile Picture

Haque 302

#3
11manish Profile Picture

11manish 265

Last 30 days Overall leaderboard