Go through these in order and stop at the first one that applies. If you are reading this for someone else, answer for them.
An exposed heart at birth is an emergency requiring immediate specialist newborn care.
If ectopia cordis is unexpectedly present during a birth outside hospital, call emergency medical services at once.
Do not push the heart into the chest or handle it unnecessarily.
After hospital discharge, call emergency services for:
Contact the child's specialist team promptly for fever, increasing wound redness, drainage or swelling, worsening breathlessness, repeated vomiting, poor feeding, fewer wet nappies, unusual sleepiness, or a clear fall in activity.
Follow the discharge plan about symptoms needing same-day assessment.
Do not wait for the next appointment if new concerns arise.
Continue routine follow-up for growth, development, heart and lung function, medicines, and future surgery.
The article also says
A prenatal diagnosis does not usually place the pregnant person in immediate danger, but timely referral to fetal medicine and congenital heart specialists is essential for testing and delivery planning.
Every sign above is quoted from the sofidex article on Ectopia cordis. If you are not sure, err upward — it is always reasonable to be checked.