Input box is not scrolling up automatically when device keyboard is opened

I am developing an Ionic (v5) Cordova application (using Angular) where I have a bot chat feature. But when I am typing something my input box is getting hidden by the device keyboard. So I am not able to see what I am typing.
The screen is not moving up at all when the keyboard is opening.

I have tried with adjustPan and adjustResize but none of them worked.

I am stuck on this for the last three days.
I have attached the screenshots for reference.