The main idea is that when there are no records, just do not show nothing, neither the title, nor the table header, but when there are rows, show something like this:
Move your Start expression to the beginning of the first cell in the table body row and move your End expression to the end of the last cell in the table body row.
Questions like this should be posted in the AppSheet Q&A board, where they’re more likely to be seen by someone who can provide an answer and won’t confuse anyone subscribed to this Tips & Tricks board for the type of content it’s intended for. I suggested to moderators that they move the post.
The idea is that when there are no records, the whole section including the title and the header of the table, just do not appear. This happens actually when I do it like this: