Infection during pregnancy is a substantial risk factor for the unborn child to develop autism or schizophrenia later in life, and is thought to be driven by maternal immune activation (MIA). MIA can be modelled by exposing pregnant mice to Polyinosinic: polycytidylic acid (Poly-I:C), a viral mimetic that induces an immune response and recapitulates in the offspring many neurochemical features of ASD and schizophrenia, including altered BDNF-TrkB signalling and disruptions to excitatory/inhibitory balance. Therefore, we hypothesised that a BDNF mimetic, 7,8-Dihydroxyflavone (7,8-DHF), administered prophylactically to the dam may prevent the neurobehavioural sequelae of disruptions induced by MIA. Dams were treated with 7,8-DHF in the drinking water (0.08 mg/ML) from gestational day (GD) 9–20 and were exposed to Poly-I:C at GD17 (20 mg/kg, i.p.). Foetal brains were collected 6 h post Poly-I:C exposure for RT-qPCR analysis of BDNF, cytokine, GABAergic and glutamatergic gene targets. A second adult cohort were tested in a battery of behavioural tests relevant to schizophrenia and the prefrontal cortex and ventral hippocampus dissected for RT-qPCR analysis. Foetal brains exposed to Poly-I:C showed increased IL-6, but reduced expression of Ntrk2 and multiple GABAergic and glutamatergic markers. Anxiety-like behaviour was observed in adult offspring prenatally exposed to poly-I:C, which was accompanied by altered expression of Gria2 in the prefrontal cortex and Gria4 in the ventral hippocampus. While 7–8 DHF normalised the expression of some glutamatergic (Grm5) and GABAergic (Gabra1) genes in Poly-I:C exposed offspring, it also led to substantial alterations in offspring not exposed to Poly-I:C. Furthermore, mice exposed to 7,8-DHF prenatally showed increased pre-pulse inhibition and reduced working memory in adulthood. These data advance understanding of how 7,8-DHF and MIA prenatal exposure impacts genes critical to excitatory/inhibitory pathways and related behaviour.