Thank you, that is exactly the type of solution I was thinking. I added that to my code and it indeed fixed the problem!
I believe this label issue was the only remaining thing affecting the screen reader accessibility. (In case it’s helpful for you to know, I earlier also had to add the line <html lang="en"> to experiment.html). I am currently waiting to hear back from a blind participant, and I will let you know how it goes.