This is common (in principle) in Australia and the UK. Functionally you have a mortgage account and then an “offset” account that is automatically deducted (ie reduces) from interest payments.
More sophisticated accounts also include unsecured credit (credit cards). But that’s less common. Most just opt for automatic payments from the offset.