Turn off auto-hiding dock and menu bar
It sounds like what you are describing is what happens when you go in full screen mode in any app, the menu bar and the dock hide regardless of the dock auto-hide settings. I would suggest just resizing the safari window instead of putting it in full screen mode. (If that is what is happening.)