All these abuses have a single cause - users not in control of their computers. It's no coincidence that vim's start screen isn't being monetized this way.
Replace the stock OS on your phone with LineageOS (or similar). Don't use apps requiring Play Services. Get stuff from F-Droid.
Is it? Every time I run npm install my terminal gets plastered with ads from the likes of "open collective".