It's just like any other dry fire. Choose whatever method suits you.
Just remember not to release the slide by depressing the slide lock. Ease the slide forward until the slide reaches it's normal battery position and pull the trigger. Then slide off the upper. If you let the slide go all the way forward until it stops, it could make the trigger press harder. In this state, the only thing holding back the slide is the sear. So in order to release the sear, you're opposing both sear return spring and the recoil spring.
There are a number of M&Ps that have magazine disconnects. AFAIK, many of those SKUs were for State Compliance (CA is one). Using the trigger pull is far more complicated since the trigger bar is disengaged with the mag out. (This is not a "political" comment, just a statement of fact. Don't make it a political thread).
As mentioned above, the since the slide is already locked back to check clear and rotate the TD lever, it's takes a second or less to depress the lever. I always use the lever on my 3 M&Ps.