Screen readers such as VoiceOver do not have native support for the details and summary elements. You will need to add aria to make the screen readers recognise it.
One way is to add aria-expanded="true"
when the details has the open
attribute, and aria-expanded="false"
when it doesn’t.
There is an existing polyfill that both adds support to browsers that do not support details/summary, and adds aria information