If relevant to you, there’s an effortless way to build an ESP32 device dashboard using the open source Mongoose Library and their Mongoose Wizard. They provide a step-by-step tutorial along with a short demo video:
https://mongoose.ws/articles/esp32-device-dashboard/