Hide files and folders from specific apps only

The way to prevent applications from seeing the entire system is to sandbox them. One easy way to do this is by launching it with firejail. With Firejail, you start a program in a confined environment. For each application, you can define rules what the program is allowed to do and what not. This includes restricting access to specific folders.

Firejail is available in the standard Ubuntu repositories.