I have several roles set in Symfony hierarchically
ROLE_1: [ROLE_2]
ROLE_2: [ROLE_3, ROLE_4]
ROLE_3: [ROLE_4]
ROLE_4: [ROLE_4]
in a twig I need to execute an action strictly for the user with ROLE_3, but I have not achieved it with the following conditional, because Role 1 and 2 also contain their characteristics
{% if is_granted('ROLE_3') %}
//Accion ver un elemento html
{% endif %}
How can I make this conditional run strictly for the user with role_3 (so Role_1, Role_2 and Role_4 can not do it), without removing the hierarchies?