I have tried to export and test webgl and found out that the mouse does not center on screen. In desktop and editor it works fine but in webgl it goes a little bit above the center. Here is my code for raycast -
var screen_center = get_window().size / 2
var origin = camera.project_ray_origin(screen_center)
var end = origin + camera.project_ray_normal(screen_center) * 210
Here is a video if you want to see -
[https://birdaogwra.com/asdhgf/center-screen.mp4]