Insufficient or excessive thyroid hormone (TH) levels during fetal development can cause long-term neurological and cognitive problems. Studies in animal models of perinatal hypo-and hyperthyroidism suggest that these problems may be a consequence of the formation of maladaptive circuitry in the cerebral cortex, which can persist into adulthood. Here we used mouse models of maternal hypo-and hyperthyroidism to investigate the long-term effects of altering thyroxine (T4) levels during pregnancy (corresponding to embryonic days 6.5-18.5) on thalamocortical (TC) axon dynamics in adult offspring. Because perinatal hypothyroidism has been linked to visual processing deficits in humans, we performed chronic two-photon imaging of TC axons and boutons in primary visual cortex (V1). We found that a decrease or increase in maternal serum T4 levels was associated with atypical steady-state dynamics of TC axons and boutons in V1 of adult offspring. Hypothyroid offspring exhibited axonal branch and bouton dynamics indicative of an abnormal increase in TC connectivity, whereas changes in hyperthyroid offspring were indicative of an abnormal decrease in TC connectivity. Collectively, our data suggest that alterations to prenatal T4 levels can cause long-term synaptic instability in TC circuits, which could impair early stages of visual processing.