You could trade Forex in the other direction, average your purchase of stocks over time to average the trend or you could open an account in the local currency (which may be the most difficult).
Probably good to point out I haven’t done any of these and I’m down -7.5% on the GBP gaining against the USD this year but those are the options I’d consider to mitigate.