If your phone isn't able to detect your smart TV on your home network, have you confirmed both are actually connected to it? Check your router's setup menu, there should be some kind of '...connected devices...' option. If you have some kind of setup where you have a regular network and a guest network implemented, make sure both your phone and TV are on the same network.