Pinned element is located at different places on different resolution

Hi, I’ve pinned a container box to the left of a section, but on different resolutions it appears differently.

On a very small screens it hides under the header, and overlays over the footer when scrolling down.

On a bigger resolution it’s located further down them I set it.

Any way I can solve this issue? so it will appear at the same place on any resolution?