I think you're referring to this:
I don´t think it´s really true that online shopping is worse for the environment. The emissions from the van coming direct to your house are not necessarily worse than the emissions of your car driving to the mall. The mall has the advantage that you buy 3-10 items per trip rather than 1 yes, but the delivery van also drives around with several things in the van that it´s delivery to other people in your neighbourhood, so it´s similar or maybe only slightly worse.
Packaging yes worse for online deliveries, but I don´t think packaging is so serious next to other environmental effects.
Going to the mall supports the future construction of more malls, with the large environmental footprint of the mall´s concrete, other materials, landscaping, construction, lighting, heating and so on. Whereas online shopping only supports warehouse construction, which has a lower overall footprint as products will be stacked more efficiently and higher and lighting, cooling and heating will likely be used more sensibly since workers are not respected as much as consumers (at least not in the US).
When you´re at the mall you´re more likely to add a coffee, a lunch, or a cinema visit with additional emissions vs staying at home and ordering online where these activities don´t occur. (In the case of the lunch, the additional emissions is in the construction of the restaurant and running of that business, rather than the cooking of the food itself, which happens either way whether you go out or stay at home.)
What will cause more emissions is earning and spending more money. Whether you spend it online or at the mall will make minimal difference.
What we need is less fossil fuels and less meat and to only buy the things we need plus a few luxuries really, really want. But not be materialistic and just buy something when we have spare money or are bored or see our neighbours have bought something.
A debate about online vs mall is a debate about how best to use fossil fuels, what we need is a society without them.