Using JS Embedded Form, does not scroll to top on 'next' button.

Using JS Embedded Form, does not scroll to top on 'next' button.

When embedding a form using JS, I am unable to get the form to scroll to the top when you click next on mobile. Even though the focused field is at the top, out of view, it will not show it unless the user manually scrolls to the top. Please help. 

Browsers: Safari Mobile, ios15