Issue with UI input coordinates when rotating Webgl canvas

So I have tried to rotate my WebGL canvas by 90deg, and it works … visually.
The problem is the UI input coordinate is not being rotated, it act just like it stretches to fit new canvas.

Here is the code in html file

<div style="transform: rotate(90deg);">
    <canvas id="unity-canvas" width=1920 height=1080 tabindex="-1" style="width: 1920px; height: 1080px; background: #231F20; position: absolute;"></canvas>
    </div>

Any idea?
Thanks in advance!

I am encountering a similar issue. I managed to fix it on the mobile Android version, but I’m currently facing problems with the web version.
I am publishing the code for this Block Blast game.