Android phone Line slot auto-shift

Hi, I am going to embed codemirror6() in my android phone and now I am having some problems.
I installed lineNumbers extension in codemirror6 Since the bottom half of the screen will rise up for the input method in order to fit the phone, the webview needs to adapt to the height and when the user clicks on the bottom half of the area, the line slot is shifted, as in the picture below, that’s too bad. I hope you can tell me what to do to fix him. Thanks!

There is no picture in your post…