Window.open() doesn’t work in Safari in iPhone

window.open() doesn’t work in safari in iPhone.
“Doesn’t work” means it does not open a window when it is called. Nothing happens in Next.js.

It works in Safari in iPad.
It works in Safari in desktop.
It works in chrome in anywhere.
I can’t wrapper tag because url is changed according to response of backend.
This is my code.

let a = document.createElement("a");
document.body.appendChild(a);
a.setAttribute("style", "display: none");
a.href = address;
a.target = "_blank";
a.click();
document.body.removeChild(a);

Has anybody addressed this problem yet?