To hide sensitive files to the agents, Blur file preview feature can be used.
Open and edit the Lightning record page. In the standard Enhanced Conversation component configuration, enable “Blur file preview”.

Output:
When the end users or customers send files, it will be blurred for the agents. This will allow agents to avoid viewing sensitive files.
It’s a precautionary step so that agents will not view any sensitive files sent by the customers.
