Variable rate mortgages are linked to the Bank of England’s base rate for interest not directly to inflation, currently at 0.5%. The bank’s rate is usually around 3-5% above this.
They are not tied to inflation. However the BoE may raise interest rates in an effort to kerb inflation.