You think the banks would start screaming to Congress if they had a huge portfolio of 3% mortgages and inflation went up to 15%? Contracts are not sacrosanct anymore.
I can see a letter in the mail...
“Due to rising inflation, your rate will now be adjusted to the inflation rate + your previous mortgage rate.”