Dear Katarzyna Rosiek,
Thank you for reaching out to the Microsoft community. We are delighted to offer our assistance.
You could restrict the users by assigning them with different permissions:
- Go to the list for which you want to restrict the view.
- Click on the gear icon in the top right corner and select "List settings".
- Under the "Views" section, click on the view that you want to restrict.
- Scroll down to the "Permissions for this view" section and click on "Stop Inheriting Permissions".
- Remove all the groups or users that you do not want to have access to this view.
- Add the group or users that you want to have access to this view and give them the "Read" permission level.
- Save the changes.
More references: How to set View level permission for a List/Library in SharePoint online? - Microsoft Community HubRestricted View Access on Sharepoint - Microsoft Community
Hope you keep safe and healthy always.
Sincerely,
Sean | Microsoft Community Moderator