diff --git a/packages/editor/src/store/selectors.js b/packages/editor/src/store/selectors.js index 8b0dfd4b370c4..f890dcac39732 100644 --- a/packages/editor/src/store/selectors.js +++ b/packages/editor/src/store/selectors.js @@ -1276,9 +1276,15 @@ export function getRenderingMode( state ) { * * @return {string} Device type. */ -export function getDeviceType( state ) { - return state.deviceType; -} +export const getDeviceType = createRegistrySelector( + ( select ) => ( state ) => { + const editorMode = select( blockEditorStore ).__unstableGetEditorMode(); + if ( editorMode === 'zoom-out' ) { + return 'Desktop'; + } + return state.deviceType; + } +); /** * Returns true if the list view is opened.