People have been pointing out a continuity problem in Despicable Me 4, but this small detail is part of why Illumination has been performing so much better than Disney at the box office. The film sees Gru grow his family, introducing a new baby boy with his wife, Lucy Wilde. This comes some years after the events of Despicable Me when Gru adopted his three daughters, Margot, Edith, and Agnes. However, the timeline of this Illumination film franchise doesn’t quite add up, and while this might bother some viewers, it’s actually a sign that Despicable Me is doing things right.
https://screenrant.com/despicable-me-4-ages-continuity-problem-why-dominating-disney/