If you sell your home after consolidating debts into your mortgage, you must pay off the consolidated mortgage balance from the sale proceeds.
Any remaining funds after paying off the mortgage are yours. It’s important to consider if the home sale will cover the entire consolidated debt.