@kkumar-
I've not experienced this problem myself, but some have reported that by connecting to another network, for instance their phone's wifi hotspot, while setting up their remote for their TV, it enables the TV brand to be recognized so the setup can complete. Once the remote is successfully set up for the TV, you can then return to your normal home network.
Alternate TV brands to try for remote setup if your brand isn't listed or the supplied codes don't work for you. (Gleaned from posts by remote guru @Tivoburkee )
LG - Try Goldstar, Vizio, Hisense, and Sharp
Roku Community Streaming Expert
I am not a Roku employee, only a user like you. Please, no support questions via private message -- post them publicly to the Community where others may benefit as well.
If this post solves your problem please help others find this answer by clicking "Accept as Solution.".
Ultra 4800 | Streaming Stick 4K+ 3821 | TCL Roku TV 43S245/C107X