ESP32's GPIO pins won't respond
Figure 1. The 'scope CH1 coupling is set to AC.
This switches a capacitor in series with the input. A positive going square edge causes the input to rise with it but discharge at a time set by the 'scope's input capacitance and resistance. A similar effect happens on the falling edge.
Switching to DC coupling should fix it.