Managing infections in newborns involves prompt identification and treatment with appropriate antibiotics or antivirals. For instance, neonatal sepsis requires immediate administration of broad-spectrum antibiotics until the specific pathogen is identified. For congenital infections, antiviral medications may be used, and supportive care is essential to manage symptoms and complications.