If you've tried all of the above and are still having issues getting your Switch 2 to work with your TV, contact Nintendo support for help. You might have to mail in your dock and console so Nintendo can look into the problem for you.
What to check if your Nintendo Switch 2 isn't connecting to the TV