This is an example on how to load files into the floating webview using Shortcuts. It's just to show how the basics work, so it's not really useful in this form.
The device frame is provided using the Text action as base64.
The content that is shown inside the frame is retrieved from the currently selected File in Finder (for performance reasons max 5MB file size).
iphone13-pro-floating.shortcut (512.3 KB)