Before I start, I'm sorry for using a translator to write. :(
I knew that the behavior attribute was not only available in Safari in IOS.
So I tested it with Iphone 13 pro, but it not working in safari and chrome.
What do I know wrong?
<body style="height: 5000px;">
<button onclick="test()">click</button>
<script>
function test(){
window.scrollTo({top:2000, behavior:"smooth"})
}
</script>
</body>