You need to confirm which model iPhone and make/model TV you are using. Some TV’s are not capable for such a connection. I have a TCL TV that I am unable to cast from either my Samsung S23 Ultra or iPhone SE 2022. You might look into an Apple TV module.