Saw the similar post here. It works for me.
using HypertextLiteral, PrettyTables
html_table = pretty_table(String, df, backend = Val(:html))
scrollable_table = @htl("""
<div style="max-height: 400px; overflow-y: auto; border: 1px solid #ccc;">
$(HTML(html_table))
</div>
""")
scrollable_table