diff --git a/packages/block-library/src/gallery/edit.js b/packages/block-library/src/gallery/edit.js index f0798c5df89d2a..13ee55cc6c786c 100644 --- a/packages/block-library/src/gallery/edit.js +++ b/packages/block-library/src/gallery/edit.js @@ -565,7 +565,8 @@ function GalleryEdit( props ) { /> { noticeUI } - { gap && + { Platform.isWeb && + gap && styleElement && createPortal( , styleElement ) }