The first step is to make sure your finances are in as good a place as possible. Try to reduce any existing debts or loans, and pay bills and other credit repayments on time.
It’s also worth reducing your spending where you can and aiming to keep your monthly outgoings consistent. Avoid taking out further credit before applying for a mortgage, too.