In this blog post, I did walk you through how to render conditional markup in LWC.
With the latest Spring '23 release we will be able to use if .. else if tags in the LWC template files to achieve conditional markup rendering.
Here's a simple example demonstrating it.
Hope this is helpful!