We need more information, but assuming the old remote has a button on the back or inside the battery compartment press and hold the button until the light starts to flash and then disconnect the power from the Roku device for a few seconds and reconnect it.
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.