In general, it's better if you can find a way around using absolute positioning to begin with. I know all too well the temptation to use "position: absolute" because it's the easiest way to put something exactly where you want it, but using a grid or flex box is usually the better option because it'll naturally work with the rest of your layout.
Alternatively, you could use "position: fixed" on the footer so that it is always floating on the bottom of the screen, but without seeing your design it's hard to say if that would work for you.