So this channel is entirely snippets from Palentologists (and in older videos one of the Greens?) and gives pretty good, short answers for why things might be the way they are.
If you can't watch, the lady basically sums it down to plankton and the increase of O2 in the ocean and the abundance of erosion that supplied minerals to the ocean. And from this Palentology Podcast I listen to, The Common Descent, I recall them saying the erosion was due to 'Snowball Earth" as glaciers went over mountains and that much. I can't pull a specific quote because those podcast episodes are 2 hours in length.
Well, a lot happened between the Cambrian Explosion. You had 3 major Mass Extinctions including the worst Mass Extinction ever before Dinosaurs came about. And within I think, about 10 million years of that Mass Extinction (The Permian), Ichyosaurs were reaching massive sizes.
To put this into perspective, they were alive 244 million years ago. The Permian Mass Extinction was at 251 million years ago and caused the following;
Ichyosaurs are marine reptiles that evolved about 2 million years after the Mass Extinction and by 7 million years after it attained 17 meter sizes, basically whales. But in a fraction of the time. Which is insane and shows this isn't just a dinosaur thing.
So other animals did become big. But the video I linked earlier credited Dinosaurs getting big to their skeletal structure and the fact they laid eggs. Mammal gestation is costly in comparison to egg laying.
Though it should also be said outside of Sauropods—the long necks—most dinosaurs topped out at around large elephant size to rivalling the biggest mammals of all time in weight. So if we get rid of the biggest category, the only thing Mammals lack is variety. We do have dinosaur heavy animals alive today and had some that were just as heavy as their heaviest non-Saurpods.