Which is why they use a balance shaft.
Which was invented in 1907 ...
Except most production 3-cyl engines don't use a balance shaft, because they're expensive, heavy, and sap some power. VW just ignore the vibrations (I test drove a Citigo and it was like a coffee grinder) and Ford use an unbalanced flywheel to (sort of) compensate.
3-cyl engines have perfect secondary balance but a terrible rocking couple, which is one form of primary imbalance.
4-cyl engines also benefit from (two, smaller) balance shafts because they have poor secondary balance, but this only becomes an issue above 2 litres. For instance, Mazda use balance shafts on the 2.5 litre SkyActiv engine but not on the 2.0.
The only common engines that are perfectly balanced are the straight six, V12, and some types of V8.