There’s a device called a she-wee and many female vanlifers report success with Folgers tins or large fountain drink cups, which then get poured into a bottle.
Source: thevanlifecoach.com
Probably not while laying down, but a wide mouth bottle, such as a dedicated Nalgene bottle, can work.
it can work in a pinch but from personal experience can't recommend using water bottles for these purposes at all
While my personal urinating experience so far in life has involved a male urethra, I met on trail women who've been using Shewee for peeing in the outdoors. I imagine that if it works the way it's supposed to work, maybe it could work with a bottle.