Factory reset phone without wifi

I recently broke my iPhone 13, and wifi, data, bluetooth, etc has permanently been destroyed. Aside from that, the phone works perfectly fine, but the back is entirely cracked. My carrier said they will allow for this phone to be traded in as long as I can factory reset it. The issue is, I can't figure out a way to factory reset it without wifi. Any tips?