Use this procedure to show and hide objects that are invisible in the current state. This change affects the Block Editor display but does not affect the inserted blocks.
The blocks with visibility assigned to them would hide and unhide with the change in state of the Visibility Mode toggle button.