This is a good idea but the wrong instrument unless your mortgage is 3 million dollars.
Depending on your mortgage size and terms you might be able do something with treasury futures but it would be complicated. You will have to do some math, take some basis risk, and accept a crude hedge...