You can use the Conditional Blocks plugin.
How to show or hide content based on specific conditions in a block-based theme in WordPress

This article can be read in about 1 minutes.
You can use the Conditional Blocks plugin.
Comment