Best way of placing panels on the side of the scene

I have a scene with a canvas (Screen Space Overlay) and would like to design it like this:

A panel with a button on it that act as the trigger for sliding the panel in and out of the scene. I use animation and that works OK. However, my question is if this is the best way of doing this or is there an other and better way?

I have some challenges with the anchor points, different display sizes etc. I have also experimented with a second canvas, which was bigger than the main one, but did not get that to work.

Cheers

You are pretty limited in terms of anchoring outside the canvas but you can just offset its potion. Just make sure you have a Canvas Scaler and you should be fine.