App Lock not applied for notifications

I am using Ratio Pro on Xiaomi Redmi Note 7 Pro- India. Found a glitch with app lock. When a notification for an app comes in the notification bar, the app can be directly opened from that even when the app is locked in launcher. Please fix.