Firstly, copy the one line of code required from Customer Site>>Embed.
Now see https://support.squarespace.com/hc/en-us/articles/206543167 which includes a step by step guide on how to install the widget, as well as a video guide.
Please also ensure Ajax loading is disabled on this page.
Note. the breakpoint at which the widget will switch to the mobile version is 940px.