Change dialog box width

Is there a way to change the width of dialog or a work around?

Yes, you can pad the width by using whitespace characters in the dialog title: I used the braille blank character via copy and paste

Here's an example from one of my projects:

<dialog id="message" title="⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀Send Message⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀" subtext="">