Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
I'm experiencing a significant rendering difference when embedding a report using layoutType: models.LayoutType.MobilePortrait via the Power BI JavaScript SDK compared to how the same mobile layout appears in the Power BI Service (powerbi.com mobile preview).
Environment:
Issue:
When I view the mobile layout in the Power BI Service (Edit mode > Mobile Layout preview), everything renders correctly:
However, when embedding with the SDK using MobilePortrait, the same report renders broken:
What I've tried (none resolved the issue):
Expected behavior:
The SDK should render the mobile layout identically to how it appears in the Power BI Service mobile preview — with visuals properly scaled and wrapped within the canvas width.
Actual behavior:
The SDK seems to render the mobile visuals directly into the container without applying the same internal scaling/canvas logic that the Power BI Service uses. This causes visuals designed for mobile (especially button slicers and tables) to overflow and truncate.
Question:
Is there a configuration or workaround to make the JavaScript SDK MobilePortrait embed render exactly like the Power BI Service mobile preview? Is this a known limitation of the SDK?
Hi @rafaelmpsantos,
From the screenshots and the behavior you're seeing, this seems more tied to how the report renders in the embedded mobile experience than to the embed configuration itself. The layoutType: models.LayoutType.MobilePortrait setting loads the report's mobile layout, but visuals like button slicers, tables, and matrices can still behave differently when embedded, which can lead to truncated text, clipped columns, or scaling differences.
Since you've already tested container sizing, FitToWidth, FitToPage, isMobile=true, and the viewport settings, you've covered most of the common configuration options. As a next step, I'd recommend trying the latest powerbi-client SDK version to see whether there are any rendering improvements.
If the behavior stays the same, it may be worth validating the report specifically in the embedded scenario and adjusting the mobile layout where needed. For example, responsive visuals or dropdown slicers may work better than button-grid slicers, and wide matrix/table layouts may need to be simplified for smaller screens.
Best practices for creating mobile-optimized Power BI reports - Power BI | Microsoft Learn
Optimize visual formatting for mobile layout - Power BI | Microsoft Learn
Embedding a Power BI report with mobile layout in Power BI embedded analytics | Microsoft Learn
Thank you.
I'm using the latest version of the powerbi-client SDK. I noticed that this issue happens when the PBIR model is enabled, so it seems to be a PBIR limitation.
When I try to run JavaScript to validate whether the page has a Mobile Layout, the result is not returning true.
Hi @rafaelmpsantos,
Thanks for the update. Since you're already on the latest powerbi-client SDK, you can use page.hasLayout(models.LayoutType.MobilePortrait) to determine whether the page includes a Mobile Portrait layout. The documentation says this method returns a boolean that indicates whether the page has the specified layout. Microsoft also notes that if a page doesn't have a Mobile Portrait layout, it will be loaded with the MobileLandscape layout.
Embedding a Power BI report with mobile layout in Power BI embedded analytics | Microsoft Learn
Thank you.
The method page.hasLayout(models.LayoutType.MobilePortrait) does not works in PBIR reports. It's a bug.
Hi @rafaelmpsantos,
Thank you for the update. Since you've reproduced the behavior and believe this is a bug specific to PBIR reports, I'd recommend raising a Microsoft Support ticket.
Create a Fabric and Power BI Support Ticket - Power BI | Microsoft Learn
Thank you.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |