Remote != Offshore.
Some remote work companies don't even allow you to work remotely from a location outside their home country.
So "foreign national on foreign soil" is VERY different from "remote"!
Moving development offshore is often not what companies have in mind when they say "remote", and for good reasons. Taxes, travel expenses, timezones, risk profile, etc. are more complicated. Especially the risk profile. And that's before considering more nebulous stuff like communication skills and "culture fit". At the very least, it's a lot of unknowns.
So, make sure you aren't wasting energy applying for positions that were never open to international (or non EU in the case of Europe) applicants in the first place.