You can change jobs before starting your mortgage application process. However, it’s a good idea to discuss with your lender how they feel about recent job changes before applying for a mortgage.
You shouldn’t see serious issues if your new position is in the same field of work, offers an improved salary and you have a work history longer than 2 years.