Is a threaded comments system possible?

I am creating a window on my project that allows users to leave messages on topics, and basically right now I display all the messages in a two column’d table I’ve made to look like a old school chatroom. It works fine.

My boss just brought up he might want it to be more of a threaded comment system, like Reddit, where each child message get’s a tab indent.

Now I don’t see how this is possible with a my current table set up.

Here’s what I do have - on a side project I already made this (in pure HTML/flask backend). I am able to create the lists and sublists structure for a threaded comment system.

But is there any good component for displaying them? My End results would be something like this

<UL>
    <LI>Top Comment</LI>
    <UL>
        <LI>Child comment</LI>
        <LI>Second child comment</LI>
            <UL>
                <LI>Grand child comment></LI>
            </UL>
    </UL>
</UL>

I am able to create the above HTML code dynamically from my database information, is there any good way to display this in Igntion? Using 7.9.1.