Merge "Handle footer visibility in the new stack." into main