I'm on AT&T and I have it on my device. It's a preloaded app called Smart Controller. Should be in your app tray or a folder. Haven't used it yet. However I used the Honor 8 equivalent and it worked perfectly.
I can confirm that the one I have, bought on Amazon and use on AT&T comes with a built-in app called "Smart Controller" that clearly is used to add remote controls. There is also hole on the top that I have read is an IR blaster. I haven't actually used it. I don't use my phone as a TV remote but I get that you can.
Everyone is correct. And I actually programmed a remote thru smart controller (Panasonic TV) and it works fine. Took less than a minute. Though there is no option for Sony receiver or any other receiver. There is a customize function but useless. Though you can control your A/C, projector or camera. I hope they add more options.