Hi Tereza V.,
It is Android 9.0 on Nokia 8 (TA-1012), unmodded. Please see the 'Clear all' button in the notification dropdown in the attached screenshots. When I click it, it clears the Avast persistent notification.
At the moment, I have the 'Sticky' notification behaviour for the Avast Mobile Security app set at 'Show silently and minimise'. There was no issue when the sticky notification was set at this mode in Android 8.1, 8.0 or 7.1 (i.e. the three earlier Android versions this phone ran).
Thank you!