`phx-click` and JS `onclick` together

Try this, I didnt test it, just basing on this reply Triggering LiveView Form Change Event from Javascript - #2 by chrismccord

document.getElementById("my-phx-button").dispatchEvent(new Event("click", {bubbles: true}))