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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
firstch
Helper III
Helper III

Embedded power BI Mobile Layout doesn't work

Hi everyone please help , how to embedded power BI with mobile view 

this is my code that i have input config in file name "/Authenticate-ServicePrincipal/Embed for your customers/Embedded report.cshtml"

 

firstch_0-1661488824170.png

but it still show desktop  layout 

firstch_1-1661489271073.png

 



this is git that I use as reference:https://github.com/Dhruvinshah16/PBI-Embedded-ASP.NET

 

Thankyou in advance

 

Best Regard

firstch

3 REPLIES 3
Anonymous
Not applicable

Hi  @firstch ,

 

There are two layout types dedicated to mobile devices:

  • MobilePortrait - Optimized for portrait view. This is the mobile layout you created for your report.

  • MobileLandscape - Optimized for landscape view. This is the regular layout of your report.

     

For example, the following code shows how to embed the report with a mobile layout.

// Get models. models contains enums that can be used.
var models = window['powerbi-client'].models;

var embedConfiguration = {
    type: 'report',
    id: reportId,
    embedUrl: embedUrl,
    tokenType: tokenType,
    accessToken: accessToken,
    settings: {
        layoutType: models.LayoutType.MobilePortrait
    }
};

You may refer to this offical blog to learn more details about how to embed a report using mobile layout.

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hi @Anonymous 
The problem solved, I reccorrect the bootstrap part in code first  then add the above code, its work

thank you
Best Regard
firstch

Anonymous
Not applicable

Hi @firstch, can you please detailed the correction you made in bootstrap to make this function work ?

Thank you very much !

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.