How to optimize 2D canvas and WebGL rendering for mobile browsers?
Cap the device pixel ratio, batch draw calls, keep textures power-of-two and compressed, avoid per-frame allocations, and use WebGL rather than full 2D canvas redraws for anything animated. Test on real mid-tier phones, not desktop dev tools.