Asking this question here is probably the best thing to do.
Though it sounds like you're still learning. Don't expect to make great money until you've proven yourself. In any country. Of course other countries you'll be paid according to local standards but still crap. And consultancy companies always exploit their employees. When I consulted the company charged 10x as much for my services as they paid me. And still managed to make a loss due to all the useless management layers and overpaying the sales suits that were so stupid they sold stuff we couldn't possibly make.
But be aware a company looking for remote developers from Madagascar is probably doing this so they can pay you a pittance as well and think you'll be happy with it. If they're going to pay you their country's local wages for a starter job, they'll rather get someone actually local I guess. Makes the whole tax thing a lot easier too, they can keep an eye on you (like sick leave etc) and for moving you over the immigration process will be prohibitive for them. The problem is they're not going to go to this kind of effort for a starter position unless they have no choice.
I think the best thing you can do is become a known expert in your specific niche. Make sure you're on all the fora and slack/discords whatever for the stacks and frameworks you use. Help people there when they have questions. Soon you'll become a known and this may lead to things.
PS I have lived and worked in 4 countries. Though all Western well off ones.