Hi,
There are various posts online regarding HTML building. Building the HtmlText to be a string on the lines of the simple example below, is one method. HTML tags could be a table, unordered list, ordered list, or description list tags.
There are some ideas around populating HTML templates that might also be worth looking at (https://powerapps.microsoft.com/fr-be/blog/html-markup-with-dynamic-data/), but this does have some limitations. Until MS relent and allow <style> tags in HtmlText, to add CSS you would need to use inline styling, but can be tedious to maintain.
You will need to replace the list and field names with your own names, and either use a variable for the listOne ID, or use a gallery selected item, etc. in the HtmlText property of your HTML control. Using this example as a seed, you can format the fields, change the tags, and add some inline styling to produce some decent workable results.
With(
{
wListOne: LookUp(listOne, ID = <varID>),
wListTwo: Filter(listTwo, parentID = <varID>)
},
"<div>
<p><strong>Field One</strong>: " & wListOne.FieldOne & "</p>
<p><strong>Field Two</strong>: " & wListOne.FieldTwo & "</p>
<table>
<thead>
<tr>
<th>Header One</th>
<th>Header Two</th>
</tr>
</thead>
<tbody>" & Concat(
wListTwo,
"<tr>
<td>" & listTwoFieldOne & "</td>
<td>" & listTwoFieldTwo & "</td>
</tr>") & "
</tbody>
</table>
</div>")