How do I get my iPhone and my TV on the same WiFi network?
Find your WiFi network name in the iPhone's Settings > WiFi, then go into your TV's network settings (check the manual, since every brand puts them somewhere different) and join that same network. You can also run an Ethernet cable from your router to the TV, if the TV has a port.