I found a way to float a shortcode on the page from https://israelphonerentals.com/how-we-added-a-floating-widget-in-wordpress/
Basically, you first need to install widgets on pages
https://www.ads-software.com/plugins/widgets-on-pages/
and then put this code right above the </body> in your footer.
`<div id=”floating_cart” style=”bottom:0;position:fixed;_position:absolute;right:0><?php widgets_on_template(“cart”); ?></div>
and just replace the widgets_on_template(“cart”) part with whatever the widgets on pages name is.
You can edit the style= section to change where it floats.