How to use your Apple iPhone XR 128 Go as a TV remote control

How to use your Apple iPhone XR 128 Go as a TV remote control? For each electronic device such as TV, DVD player or box, you must have a remote control. This can become...