I tested with almost all browsers in web mode on Mac and not able to re-produce the issue.
You might be facing the issue in runtime, I suspect that Qt WebEngine may be responsible for this behaviour (It sounds like CodeMirror's copy handler is somehow not running, and WebEngine's native copy behaviour is happening instead.)