Deva_Rishi:
If you are going to create an Android app, why don't you let the App make 'get' request repeatedly, to get updated info. Then you can just use the ESPweberver.
Yes, do this.
Alternatively do the same thing for a web browser using javascript.
The question that has been asked is for the most part not related to microcontrollers. The question is just "How do I poll an HTTP server?" You can do that any number of ways. If you are going to do it with a standard web browser like Chrome and would like the GUI to look like a modern web application, I would definitely use HTML, CSS and JavaScript. It is flexible to do every 5 seconds or per any logic you choose and will be viewed from a device that has lots of RAM.
12345PJ:
I would like to have the webbrowser to switch to an alternative page whenever a variable is set, e.g the ADC value is above a certain value or an input pin is changed[...]
Key words web browser; this is your client application. Your client app should send an HTTP GET request your server and the response will tell you your ADC value or input pin value. In your client browser application (ex viewing a web page) you can do whatever you want, you can display a new page or update the values on the screen etc. What you do is up to you after you HTTP GET request your values from the web server.
12345PJ:
The main and the alternative page will have data on it which must update automatically every 1-5 second, not the same data on the pages[...]
Web pages are served from an HTTP Server and delt with (viewed) on an HTTP Client (web browser). An HTTP Server serving HTML/XML pages does not ever update. You can only make a RESTful transaction. The interaction is stateless because it is one request and one response.
You can, however, serve dynamic pages at the same endpoint (URI / web page). Again this dynamic page will not update the client. The client will need to make an additional request for information. Because the page is dynamic, the same client request to the same endpoint can result in different data being sent in the HTTP response.
12345PJ:
I want to have an AP running with an async Webserver[...]
It could be nice to be redirected to a landingpage whenever a device is connected to the AP[...]
I missed this in my first reading of your question. This appears to infer that your microcontroller will not be connected to the internet and your client machine will be connected directly to it. This has the drawback that your client most likely can't connect to the internet because it will be connected to your Arduino access point. This means you will need to store all of your HTML, CSS and JavaScript on your microcontroller. ESP32's are pretty good for FLASH. You can use SPIFFS to store a lot of text files, but little to no images.
"Redirected to a landingpage" you can use a captive portal.
12345PJ:
I am doing a project and replacing my Display in a Peugeot 407 which is not visible unless it is cold.
The CAN messages I hope I will manage to receive and decode and if a fault appears on the car, the display must show an alternative webpage with the fault and the explanation, otherwise it mustr show temperature, radiochannel, volume a.s.o.
I've never used a CAN bus, but if you can interface it to your Arduino (ESP32) this is all still relevant to the above statements about the HTTP Server and Client.