Mortgage shopping was the part of buying a house where I felt most out of my depth, and I read fine print for fun. Albert Sells Phoenix covers financing without drowning you. The rest I learned by asking every lender who would take my call the same questions.
Fixed or adjustable? A fixed rate is boring, and boring is good if you plan to stay. An adjustable rate looks cheaper up front and then stops looking cheap. We went fixed because I would rather know the number than hope about it.
Ask for the total cost to close, in writing, not just the rate. Lender fees, title, appraisal, recording, prepaid interest, the things nobody puts in the headline. Get it on paper from each lender and put the pages side by side. The gaps are not small.
Learn the difference between pre-qualification and pre-approval, because agents will ask and you want to answer correctly. Pre-qualification is a conversation. Pre-approval means somebody actually read your documents. In a busy market, one gets your offer taken seriously and the other does not.
Then ignore the number the lender says you can afford and work out what you can live with. Add the taxes, the insurance, the water, the electricity in August, the HOA dues. We budgeted on the worst month of the year and bought below the maximum for that reason.
Keep a cushion after the down payment. Something will break in the first year. It always does, and it is usually the thing nobody inspected. Cash on hand turns a bad week into an annoying one.