You do need to see a lawyer. However, I know of two cases.
In one, the couple weren't married. A document was drawn up so that the house would go to the children, but the male partner (who didn't own the house) would be allowed to live in it if the woman died first. A solicitor had to draw this up.
In the other case, the couple were married. The husband developed severe dementia. When he became violent, he had to go into care. In Scotland, we supposedly have free personal care but we still have to pay what SW term "hotel costs". In my experience, the private care homes simply quack up their fees a couple of hundred to benefit from the "personal care" component.
With the married couple, the council got all of the husband's work pension plus some of his savings every month. (When the wife protested that she'd been relying on the husband's work pension, the reply was "Not our problem".) There would have been a chunk taken out of the proceeds of selling the house (eventually) if he hadn't died.
To clarify - because the wife was over 60, the house wouldn't have been touched until after she died. Since her husband died before his work pension and savings were used up, the house has been saved and the wife now gets a percentage of the work pension.