Assume this is the Roku Streambar SE? Thats the only soundbar to come an IR remote. So the only way it can control your tv is by CEC. You have to have it turned on in the TV settings.
You could upgrade the remote to separately sold wifi voice remote which would be programmable to control your tv by IR.
Edmund
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.