Is it possible to set a GameObjects moving speed depending on the size of the game window/screen resolution?

To be more specific I have a GameObject with a script attached to it. The script moves the GameObject with transform.translate. It always moves the same speed but I don’t want that. I want it to take the same amount of time to go from the bottom of the game window to the top of the game window no matter the size of the game window. Currently if the game window is large the GameObject appears to be moving slowly and if the game window is small the GameObject appears to be moving more quickly.

use Screen.currentResolution to get the screen resolution in a sort of weird vector2 format ( so Screen.currentResolution.height for the height instead of Screen.currentResolution.y. Weird, I know);