I have found many H1 tags in my website with hidden text. Like: <h1 class="visually-hidden">Visual Separator</h1> . Does these tags going to harm seo of website. Can I get penalised?
Yes, you will get penalized soon.
Before Google caught you and send any warning or message, it will be good to remove those hidden H1 tags.