I'm sorry to hear that. Try tying her legs gently but firmly to keep them together. You could even try discussing with your child how harmful it can be to sit like this with the help of photos & videos. This kind of posture is unhealthy.
For further consultation, you can choose from our list of best Pediatricians in Lahore and seek in-person advice.