Hello,
It’s not related to theme. Check this post https://www.wpbeginner.com/wp-tutorials/how-to-hide-a-wordpress-page-from-google/
Regards