Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
kfir
Regular Visitor

Layout Type MobilePortrait

Hi,

After searching in the forum, I did not find a clear answer to my case.

I am trying to embed PowerBI on Mobile devices. For simplification, I am using PowerBI-Developer-Samples . after updating the appsettings.json , and verifying everything work well on the web, I added layoutType into index.js .

            reportLoadConfig = {

                type: "report",

                tokenType: models.TokenType.Embed,

                accessToken: embedData.EmbedToken.Token,

                // You can embed different reports as per your need

                embedUrl: embedData.EmbedReport[0].EmbedUrl,

                //pageName: "ReportSection",

                // Enable this setting to remove gray shoulders from embedded report

                settings: {

                     layoutType: models.LayoutType.MobilePortrait

                 }

            };

When running the solution, PBI iframe rendering never ends, and I receive an error:

 

Note:

  • In PowerBI Desktop, for every page, I created a mobile view and published it to PowerBI service.
  • I have tested in Power BI Embedded Playground and there I can see the mobile reports.

 

Any ideas?

Thanks,

Kfir

1 REPLY 1
Anonymous
Not applicable

HI @kfir,

Where did this issue appear? The web browser of PC client or mobile devices?
Perhaps you can try to refer to the following link to use the numeric parameter of layout type to confirm it works on your side.

MobilePortrait layout type doesn't work when embedding a report 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.