Which affects pregnancy, IgM or IgG?

IgM and IgG are immunoglobulins and which one affects pregnancy needs to be analyzed specifically.
IgM is the earliest antibody that appears in the initial humoral immune response, and the detection of pathogen-specific IgM in the serum suggests that a pregnant woman or a recent infection during pregnancy, such as rubella virus, cytomegalovirus, toxoplasma gondii, and so on, if the infection is not controlled before getting pregnant, it may affect the normal development of the fetus, and it is recommended to treat the infection first before preparing for pregnancy.
IgG is the main antibody produced by the re-immune response, suggesting that the antibody is produced by the stimulation of previous infections. If the test is also positive for IgM, intervention is still needed, but if the test is negative for IgM, intervention is not needed.
In the event of an abnormal test result, it is recommended that the patient consult a clinician to determine if treatment is necessary based on past medical history and symptoms.