Dealing with a toxic ex involves setting clear boundaries, maintaining open communication focused on the children, and seeking mediation or legal assistance if necessary.