In the handshake the client lists protocols (h2, http/1.1) and the server picks one. That is how HTTPS decides between HTTP/2 and HTTP/1.1 without an extra round trip.