Wipe phone missing SIM card

So I got a new phone and want to wipe the old one through anti-theft before selling it, but the SIM card in the old phone is already disabled. Which means any commands I send to my old phone through my browser avast account don’t work. Any way to connect to my old phone over wifi??