Kotlin and HTML in Intelij

At my work, we use Kotlin and XHTML for the frontend. Now I want to start a new personal project (web application) in the same style, but I can’t find any tutorials or videos on how to “connect” and run HTML and Kotlin in IntelliJ. Does anyone have information or a link with an explanation?