Buying a house

Is it better to buy a house together before or after you're married? Or does it not make a difference?

**We are already engaged**

I'm not asking relationship wise I'm asking about the process and financial aspect.. sorry for any confusion..I just want opinions😊