> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: getViewMode() ## Article: getViewMode() ## Article Link: https://dev.wix.com/docs/sdk/host-modules/editor/info/get-view-mode.md ## Article Content: # getViewMode() Gets the current view mode in the editor, which can be either `'DESKTOP'` or `‘MOBILE’`. This enables you to show different options in your settings panel depending on whether the user is viewing the desktop or mobile versions of their site. ## Syntax ```js function getViewMode(): Promise ``` ## Parameters This method does not take any parameters. ## Returns `Promise` The current view mode in the editor, which can be either `'DESKTOP'` or `‘MOBILE’`. ## Example ```js import { editor, info } from '@wix/editor'; import { createClient } from '@wix/sdk'; const client = createClient({ host: editor.host(), modules: { info } }); async function getViewMode() { const response = await client.info.getViewMode(); } ```