Problem here is late night sleep to start with as she’s going to sleep at 12 midnight it can be inferred that all the family is going to sleep at that time.
Early to bed is always good to have a quality sleep.
Next Steps
Give good feeding to the chid if tummy full they sleep well.
Health Tips
Avoid screen time from evening. Switch off lights early and prepare to sleep early on the same time every day.