How to hide a title if there is a H1 and H2?

Does anyone know how to hide a title if it consist of both H1 and H2?

I currently have this:

https://preview.redd.it/hbqn86v18a1a1.png?width=593&format=png&auto=webp&s=b6645ddcaa5ce8b49cc0c4005907fa9da3eb5a4c

h1.wp-block-site-title removes only the top and h2.wp-block-site-title the bottom. Is there a way to hide both of these in using the hide title function?

​

Thanks!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer