Use the following code
const newSettings = {
layoutType: models.LayoutType.MobileLandscape
};
report.updateSettings(newSettings);
Thinking of learning Power BI? Here is the opportunity provided by Intellipaat to earn a certification in Power BI Course!
Also, check out our YouTube video to know the data visualization basics and best practices with Power BI