How to make an auto scroll debug textbox

I am able to make a simple text area using the Template UI Node where I can place debug messages, etc. However, I want it to auto scroll to the last item that was added.

What's the solution to making a debug text box that auto scrolls using the Template node?

Thanks...

or

I'm looking for something that I can use in the NR Dashboard, and is simple, not a huge flow.

Thanks

Those 2 solutions are for node-red dashboard.

Perhaps using ui-table?

This flow can display a log (use the limiter mod in the following post too)