Doing it in Safari, step by step
Tap the drop area and choose Browse to pick the PDF from Files or iCloud Drive. When the sizes appear, pick one and tap Download; Safari saves the new PDF to your Downloads folder in Files, from where you can share it to Mail or WhatsApp.
iPhones have no built-in way to shrink a PDF. Shortcuts and the Files app can make PDFs but not compress them, and most App Store options upload the file or need a subscription. Here the file stays on the phone.