If you sell your home with a secured loan on it, there may be a couple of options available to you:
Repay the loan early using the proceeds of the house sale. However, this could mean paying Early Repayment Charges.
Alternatively, you might be able to transfer the loan to your new property.
Each lender will have their own policies referenced in their terms.