Can my spouse be on the mortgage but not the title?

Yes, your spouse can be a co-borrower on the mortgage even though he/she is not on the title.