1e41f4b71Sopenharmony_ci# Web Subsystem ChangeLog 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci## cl.web.1 Enabling Rule Change for the Viewport meta Tag 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci**Access Level** 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ciPublic 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci**Reason for Change** 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ciIn previous versions, the viewport **\<meta>** tag is enabled or disabled based on the device type. On mobile devices, the tag is enabled, and pages are displayed with a mobile-optimized viewport. On other devices, the tag is disabled, and pages are displayed with a desktop-optimized viewport. This means that the viewport cannot be customized. 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci**Change Impact** 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ciThe [setCustomUserAgent](../../../application-dev/reference/apis-arkweb/js-apis-webview.md#setcustomuseragent10) API can be used to customize the viewport. Specifically, if the custom user agent does not contain the **Mobile** field, the device is identified as desktop and the viewport **\<meta>** tag is disabled by default; if the custom user agent contains the **Mobile** field, the device is identified as mobile and and the viewport **\<meta>** tag is enabled by default. 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ciThis change is a non-compatible change. If the custom user agent is not standards compliant, a web page layout error will occur. 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ci**API Level** 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ci10 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ci**Change Since** 24e41f4b71Sopenharmony_ci 25e41f4b71Sopenharmony_ciOpenHarmony SDK 4.1.3.5 26e41f4b71Sopenharmony_ci 27e41f4b71Sopenharmony_ci**Key API/Component Changes** 28e41f4b71Sopenharmony_ci 29e41f4b71Sopenharmony_cisetCustomUserAgent 30e41f4b71Sopenharmony_ci 31e41f4b71Sopenharmony_ci**Adaptation Guide** 32e41f4b71Sopenharmony_ci 33e41f4b71Sopenharmony_ciSet a standards compliant custom user agent or use the default user agent. You are advised to use [getUserAgent](../../../application-dev/reference/apis-arkweb/js-apis-webview.md#getuseragent) to obtain the default user agent and then define a custom user agent based on the default one. 34