I made my ex own the decision to get divorced. She wanted it to be a mutual decision, I told the kids "I love your mother, and I don't think divorce is the answer to any marriage problem, but I have to respect her decision."

I think age appropriate truth, but only if asked. Ask them if they have questions or concerns.
No commentary or berating the ex.