If your policy is required by your lender to repay your mortgage, it will be paid directly to your lender.
If the amount of cover is greater than the balance due on the mortgage, the remainder will be paid to your estate.
If the amount of cover is less than the balance due on the mortgage, the remainder will be owed to the lender by your estate.
If you have a dual policy, the cover is payable to the estate on the death of the second life whilst the policy is in force.