How to win someone back?

A👑

How do you win someone back when you had made a mistake that has impacted your relationship (not talking about cheating)?

In need of advice 💕