Tooltip offset when hover over object with Scale with Screen Size

So I am having problem with on hover tooltip UI element to follow mouse cursor with some offset. I do not want for ui element to be centered on cursor while following it, but to have some offset values. The problem is with Scale with Screen Size ui scale mode. Whenever screen is scaled, my offset i not right. What should i do?

Vector2 pos = Input.mousePosition;
transform.position = new Vector2(pos.x + tooltipOffset.x, pos.y + tooltipOffset.y);

Well after having some cold head I came to the solution myself. For anyone wondering the same thing:

Vector2 pos = Input.mousePosition;
transform.position = new Vector2(pos.x + (screenSize.x / tooltipOffset.x), pos.y + (screenSize.y / tooltipOffset.y));
screenSize = new Vector2(Screen.width, Screen.height);