When i change from visual editor to text editor in sections my “a” tags are deleted. I want to create a hover, clickable block with content inside of that block.
Are you trying to wrap block elements (<div> etc..) in the <a> elements? If so, that’s not valid HTML, and WordPress will strip it from your code (unfortunately).
The editor may throw in a random P tag but it should do the trick and if the span has a class and the a tag has a comment inside it won’t strip them out.