Using Gmail version 86.0.04240.198 on my Samsung Galaxy A30s with Android 10.
From the documentation we can read
You can't mark all messages as read from the Gmail app.
I know this is a task that can be done in a computer but that's not an option for me ATM.
I tried going to gmail.com and from there activate "Desktop mode" but I was getting a responsive view with less functionality.