disableCookies & opt-out: When re-opting in, cookies are no longer disabled

We use Matomo in “disableCookies” mode, and it has an opt-out iframe on the Privacy Policy page.

I noticed, that when I opt in back again after I had opted out, the “disableCookies” mode doesn’t work anymore and all kinds of cookies are being set (not only the nessecary ones, for example pk_id, pk_ses).

Is this a bug, or can I do something about it?

I’d be grateful for a hint. Thanks!