This task can be performed using Universal TV Remote
Universal TV Remote App, One for All TVs
Best product for this task

Universal TV Remote
iot-devices
One remote for all smart TVs and streaming devices, easy to set up, durable and no battery needed. More than a remote app, it also possesses multiple streaming function.

What to expect from an ideal product
- Programs instantly with most smart TV brands like Samsung, LG, Sony and others
- Works with streaming boxes and sticks including Roku, Apple TV and Fire TV
- No need to swap batteries since it's USB rechargeable
- Lets you switch between TVs with a simple button press
- Includes shortcuts for Netflix, Prime and other popular streaming apps