There are a lot of investment and trading apps that allow you to invest in foreign companies. For instance, you can invest in Google or Tesla even when you are not based in the United States by using platforms like Robinhood and Webull. I have not invested in any foreign companies. In my home country it is illegal to invest in foreign companies.