How to resolve this question?

When the size of the game scene exceeds the size of the screen, when the protagonist moves to the right, the scene will also move to the right.
Suppose a button is added in the lower right corner of the screen. When the protagonist moves to the right, the button starts to move to the left.
If you want to ensure that this button is always in the lower right corner, what should you do?

You probably shouldn’t be moving the scene, but rather a separate layer in the scene.

It would be more like this hierarchy:

Scene
  | - Menu Layer
  | - Game Layer

When Game Layer moves, it won’t affect Menu Layer.

thank you for your help