Where the mortgage fits
Whatever you and your former partner agree between you, the lender still has a loan in both names. That doesn't change because your circumstances have. Until the loan is refinanced or paid out, you're both still responsible for it — and both still affected if a repayment is missed.
Sorting that out usually comes down to one of three paths.