Thank you for your suggestion. I have found a workaround using document.querySelector and scrollIntoViewIfNeeded functions.
But the problem i run into is my script is injected after a page is fully loaded only but text fields are inserted instantly
so could it be possible to inject a script at same time as text fields are? For my usage it doesn't matter
if other content on a page is loaded or not. (I insert some text and scroll to a submit button)