So focus on becoming that really really good candidate who can command SF level salary while living in say Thailand or whatever your choice of stay is. Otherwise, you are competing with hundreds and thousands of people and if you are just about as good as them, someone is willing to work for less than SF salary. Supply/demand ?
Also, a company may be ok with a good enough dev. who costs much less than a great dev. who costs a lot more.
You could have a salary substantially less in equivalent dollars and still end up better off if a huge chunk of that income isn’t being spent on putting a roof over your head.
Or do you just want the bragging rights “I make 300k” but are sick of spending half of it on rent?
While the salary is like 5x what the average SE in México is paid, it is never close to what my peers in California are earning.
edit: my bad, I missed the 'worldwide' part...I only have experience with remote work in the U.S.
Caveats: This usually only works if you're in the same country as the company (legal/tax complications). Also, while you might get SF salary you will almost never get SF stock comp, which is almost always worth as much as the salary