I found the cause of the problem. It was an external jslib plugin (GitHub - kongregate/Unity-WebGL-Utilities: Some helpful utilities for Unity WebGL games). It worked after removing it. Looks like it’s conflicting with 2019.1.
If you’re publishing your game in Kongregate, you might have come across this plugin.