onClick event expand / collapse on mobile ios?

does this work on mobile on ios? when I try the mobile preview on a desktop it seems to work, but when I try it on my iphone, nothing happens when I click the onClick event box.

Is it possible it’s because the site is not published yet?

I use collapse / expand hide / show on mobile and it works on the iOS devices I have tested and my clients have also approved them working.