Trello does not support collapsing lists out of the box. There are different solutions such as an extension for Chrome. But nothing that works in Safari any more, as of March 2023, so I wrote my own user script.
Use this with the Userscripts extension for Safari.
It looks like this:
Click on the ▼ icon to toggle the list.
Collapsed state is persisted across page loads.