A congenital heart defect is a birth defect that occurs in newborns during birth.