Abstract Bottom‐up (plant) and top‐down (natural enemy) trophic factors can interact to have significant influence on the diet breadth of herbivores. For herbivorous insects that are victim to parasitoid attacks, diet composition can modulate insect immune responses against the parasitoid. However, immune responses are costly and insect herbivores experience a trade‐off between investment in immune defences and other physiological processes. We used a split‐brood laboratory experiment to explore how the diet of the fall webworm (Hyphantria cunea), a species that eats over 400 plant species, affects larval growth and fitness and cellular immune response to attacks from a parasitic wasp. We reared larvae on four different plant diets (apple, alder, chokecherry, cottonwood) and then exposed them to an immune challenge from a parasitoid attack. We found that diet influenced larval development as well as parameters indicative of immune response. Larvae reared on the plant that led to the poorest development also had the fewest granulocytes and the highest odds of containing a parasitoid larva. However, larval growth was not a predictor of immune response. Overall, we show that the bottom‐up effect of diet variability has significant impacts on insect immune response such that larval fitness varies considerably when fed different dietary plant species. Broad diet ranges may offer herbivorous insects the opportunity to exploit a different set of resources depending on the severity of top‐down pressures. Here, we show that this variability in plant quality also has significant impacts on larval immune response.