In QGIS 3.14.16, I want to outline multiple polygons which share same attribute value.
Styling the layer with the same attribute value bring the following result:

I could use the dissolve function to get the expected result. However, this is not a solution for me, as I need to modify frequently the attribute table.
Is there a way to configure such a style?
My final goal is to style polygons layer with:
- Outlined polygons in function of a field (as described above),
- Colored polygons in function of another field.
Graphically speaking, I want to jump from that style:

to this:
Polygons are colored with category according to field A. They are also outlined with category style according to field B.
EDIT
Here are examples of what I tried so far:
Example 4 (this last example is the best way I found to circumvent that issue, see comments below):






