The UI is broken on mobile. Ironic for mobile development but what can you do?
I went to https://appstoreconnect.apple.com/agree_to_terms on my desktop and accepted there.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags: