Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 6d80RuiuuXMWBvt0q5xWIx
Power Apps - Building Power Apps
Answered

How to change power app orientation based on device?

Like (0) ShareShare
ReportReport
Posted on 12 Aug 2021 14:33:04 by 166

I made a power app, and I want to expose it on mobile phones and also embed the same power app into a SP Online site.

 

I set the mode to be portrait so it looks fine on mobile, but the "lock orientation" is disabled so it should change when the phone is rotated. But on a SP Online page using the power app webpart widget, it always looks in portrait mode, leaving a lot of white space around the app. Is there a way I can make the power app display in landscape mode in SP Online, or do I need to make 2 separate power apps (1 for mobile and 1 for tablet)?

Categories:
  • R58395 Profile Picture
    166 on 14 Aug 2021 at 19:05:21
    Re: How to change power app orientation based on device?

    Thanks that was helpful. Also the techniques described here helped too

     

    https://www.youtube.com/watch?v=uABDL7_EDCs&list=RDCMUCvBYTqRx-n_8KzFO0MJlUVw&start_radio=1&t=155s&ab_channel=RezaDorrani

  • Verified answer
    poweractivate Profile Picture
    11,078 Most Valuable Professional on 12 Aug 2021 at 20:25:26
    Re: How to change power app orientation based on device?

    @R58395 

     

    To do this you would disable Scale to Fit, use the larger size as the basis, and use dynamic formulas to, based on the available overall screen size, dynamically adjust how it looks to make a responsive layout.

     

    More information here: How to create responsive or dynamic layout in Power Apps (docs.microsoft.com) 

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 142 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 81

#3
stampcoin Profile Picture

stampcoin 68

Overall leaderboard
Loading started
Loading complete