Arenīt there any insoles (hope this is the right word here^^) or special medical shoes against this?

I had to use insoles as a child because my left foot was kind of making a circle when going forward, the doctor at that time told my mom that this could damage my joints over time so I got these and had to use them for 4 years or so (I think) over time my walking style corrected itself using them and I didnīt need them anymore.