Or you can do it through WiFi.... If you have a smart tv... Well if your tv supports it. For instance I have a Vizio TV. They have a remote control app on the play store.. Just connect the TV and the phone to your WiFi and

boom.. works like a charm. Even gives you more options than the remote that comes with the TV.