check if you have any CSS style of height: 100% and replace it with min-height: 100% This ensures the element takes at least the full viewport height but allows it to expand dynamically if its content overflows
height: 100%
min-height: 100%