How to use Javascript to copy to clipboard in Ankidroid?

Is it possible to use javascript to copy text to the clipboard in ankidroid?

There’s another thread on this forum where in Ankimobile navigator.clipboard.writeText is supported. But that method doesn’t work for AnkiDroid.