No, you cannot get a lodger mortgage if all your income comes from lodgers. Lenders require that your primary income comes from a stable source, such as employment or self-employment.
Lodger income can only be considered as supplementary income. Lenders view primary income from lodgers as unstable and insufficient to qualify for a mortgage.