I’m happy to continue with this.
Unless a sale of the house produces enough money for the parent looking after the child(ren), the resident parent, until the youngest reaches 18 and produces a surplus for the non-resident parent, the sale of the house is not on the cards until the youngest child reaches 18.
Both parents are under a duty to provide a home for dependent children until they reach 18. Only then would the house be sold.
So it really depends on who is going to be the main carer of the children until they reach 18 as to who gets the house in the interim.
A person is not responsible for the mortgage or rent or the bills of a house that they do not live in although they remain liable to the lender or landlord if the other person stays in the property and doesn’t pay the mortgage or rent.
In that case, the non-occupier would be entitled to recover any mortgage or rental payments made by the non-occupier, from the occupier within the finances of the breakup of the relationship/marriage.
There is nothing to stop both of you staying in the property, even after divorce if you both agree.