Protecting a mortgage with life insurance works by getting term life insurance that is in force during the amortization period of your mortgage.
Your beneficiaries are entitled to a tax-free death benefit that never reduces and can be applied to whatever they choose through mortgage protection insurance.