This is likely related to the fact your Window selector contains the title of your Excel document. Also, the name of the window might be different if the versions of Excel are different on the two instances.
The first thing you need to do is look at the window element and see if it contains the title. If it does, adjust the selector so it does not contain it anymore. See this screenshot on how to find it:

It is captured for a Microsoft Edge window, but the idea is the same with Excel windows, too.
Also, it might very well be that further elements will also not work due to the different versions of Excel in the two instances. You must always make sure that you use the same version during development and testing, as the one that you have in live/production. Otherwise, you will always have issues upon deployment.
I suggest you recapture all of your UI elements in the "live" environment.
-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.