What Raspberry Pi OS have you installed (Bullseye or Bookworm)? Check it with htis command
cat /etc/os-release
TVs is notorious bad at negotiate resolution, computer displays is much better at this.
So you need to find out what resolution your TV supports and the you can config your Raspberry Pi to that resolution.
And then you need to configure KMS,
https://www.raspberrypi.com/documentation/computers/configuration.html#the-kernel-command-line
And perhaps you need to configure Wayland:
https://www.raspberrypi.com/documentation/computers/configuration.html#hdmi-configuration