You always start with a mobility aid (cane, walker, etc.), then shoe adjustments, and, as a last resort, you try anti-inflammatory drug treatment via infiltration; all before considering surgery.
When the ankle joint is destroyed (tibio-talar arthrosis), according to each person's needs, the solution may be joint replacement (total ankle prosthesis), but a fusion (ankle arthrodesis) can also restore almost normal function.