The secret is basically getting a mating net.
Box the king in and find a way to checkmate them with a pawn push.
For that to happen, it would be optimal to have their king pinned on the side of the board.
A little edit:
Almost forgot about the pawn promotion checkmate. It is actually considered a pawn checkmate by the way.
Greetings and good luck on getting that pawn checkmate!
i tried getting a checkmate with a pawn man it is hard if anyone else has got it let me know how