Forum Discussion
How does the Power BI Playground render the mobile view for their example report in the web browser?
- Anonymous2 years ago
HI Anonymous,
As you said, the ‘layoutType’ property is used for power bi mobile app instead of used when acces from mobile web browser.
If you want to show the mobile layout when you view from mobile web browser, you can create a separate report specifically designed for mobile devices, with optimized visuals and layouts for smaller screens.Optimize visual formatting for mobile layout - Power BI | Microsoft Learn
After these, you can embed this mobile report to your web application or website when users to access on their phones. (e.g. use JavaScript to check device resolutions and switch to that page)Regards,
Xiaoxin Sheng
Sorry, I don't really understand what you're saying.
You say that the layoutType: models.LayoutType.MobilePortrait option only works for the power bi mobile application?
I mean, in my app that I have in Python, I can't do embedded and show the report in mobile design even if it is a PC? still forcing settings: layoutType: models.LayoutType.MobilePortrait
And then I don't quite understand what the alternative is, first I design the mobile report (from power bi desktop), then use javascript to verify resolutions, but the question is, how do I redirect to that page that I have designed? because the only way I understood was to use layouttype.mobileportrait and thus make that design embedded
thank you.
- lbendlin2 years ago
Super User
Embedding Power BI Mobile in another app (mobile or not) is not part of the design envelope.
- apenaranda2 years ago
Post Partisan
Is it not possible to show the mobile design in another application other than Power Bi?