How do you forgive yourself for past mistakes?

I try to stay positive and treat myself with kindness. But sometimes those old feelings creep back in and makes it hard for me to forgive myself for the mistakes that I’ve made. How do you forgive yourself and move on from the past?