If you can access the phone but want to wipe it completely without a PC: Power off the device.

The phone will confirm that all data will be cleared and then reboot.

Hold the button while connecting the phone to your PC via USB-C to enter Fastboot Mode.