by robertoiacono on WordPress.org
Control the visibility of Gutenberg blocks based on user role, device type, date, time, and more. Enhance content flexibility by dynamically showing o …

Block Visibility Manager in action.
Block Visibility Manager gives you fine-grained control over which blocks support visibility rules in the block editor.
You can conditionally show or hide individual block based on:
Need to:
Block Visibility Manager solves these problems cleanly and natively.
No Blocks Added
This plugin does not add any new blocks. Instead, it extends existing core WordPress blocks using official filters and native UI components, keeping your site fast, lean, and fully compatible with WordPress standards.
Device-Based Visibility
The hiding functionality for mobile, tablet, or desktop relies purely on CSS using display: none;. No JavaScript is involved. This ensures lightweight and consistent behavior across different themes.
Server-Side Visibility Filtering
Other visibility conditions (such as time range, date range, or user roles) are enforced server-side. If a block does not meet the defined conditions, it is entirely removed from the rendered HTML output.
Editor Behavior
Visibility settings currently apply only on the frontend. Blocks remain fully visible in the editor to avoid confusion during content creation. Visibility conditions are not previewed in the block editor at this time.
Block Visibility for WordPress Block Editor
This plugin is designed exclusively for the WordPress Block Editor (Gutenberg). It does not support other page builders such as Elementor, Beaver Builder, WPBakery, or others.
If you are using a block-based theme or editing content with the native WordPress block editor, this plugin will seamlessly integrate. For other builders, visibility settings will have no effect.