Erection problems standing up vs laying down?

I don’t usually have a problem getting an erection when laying down on my back or side but when I stand up, I usually can’t get an erection.

Anyone else have this issue or know why this happens?