
However, when we try to specify a master page for the device channel, we will get the below warning if Mobile Browser view is not disabled.

We can disable Mobile Browser View feature across the sites in a site collection by running the below script in SharePoint 2016 Management Shell.
- $SPWebApplication = Get - SPWebApplication - Identity "http://SharePoint2016"
- $SPSiteCollection = $SPWebApplication | Get - SPSite - limit all
- foreach($SPSite in $SPSiteCollection) {
- $SPWebs = $SPSite | Get - SPweb - limit all
- foreach($SPWeb in $SPWebs) {
- Disable - SPFeature - Identity "d95c97f3-e528-4da2-ae9f-32b3535fbb59" - url $SPWeb.URL - Confirm: $False - ErrorAction SilentlyContinue
- }
- }

Heading over to the Features section, we can see that the Mobile Browser View has been disabled.

Now, we can successfully specify the master page for device channel, as shown below.

Summary
Thus, we saw how to disable Mobile Browser View for sites across the site collection in SharePoint Server 216

Join the conversation! Your thoughts help the community grow.