For what it’s worth, the original ESP32 is actually 5V tolerant, semi-officially acknowledged by Espressif. Good enough for hobby projects, anyway
You need to do a little research. It will usually tell in the spec sheet. Which is why the Arduino is useful. You don't have to buy a level shifter. You don't have to read a level shifter spec sheet.