<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKWebpagePreferences/ContentMode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:@E@WKContentMode"
  },
  "title" : "WKWebpagePreferences.ContentMode"
}
-->

# WKWebpagePreferences.ContentMode

Constants that indicate how to render web view content.

```
enum ContentMode
```

## Overview

Browsers often render webpages differently based on device type. For example, Safari provides a desktop-class experience when displaying webpages on Mac and iPad, but it displays a mobile experience when displaying pages on iPhone. Use content modes to specify how you want your web view to render content within your app.

## Topics

### Getting the Content Modes

[`WKWebpagePreferences.ContentMode.recommended`](/documentation/WebKit/WKWebpagePreferences/ContentMode/recommended)

The content mode that is appropriate for the current device.

[`WKWebpagePreferences.ContentMode.desktop`](/documentation/WebKit/WKWebpagePreferences/ContentMode/desktop)

The content mode that represents a desktop experience.

[`WKWebpagePreferences.ContentMode.mobile`](/documentation/WebKit/WKWebpagePreferences/ContentMode/mobile)

The content mode that represents a mobile experience.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)