Can I apply for a mortgage in the UK as a non-resident ?

Can expats apply for mortgages in the UK?