I can’t lay comfortable

I’m 32 weeks pregnant and the only place I can get comfy for a rest is on my back.

But I’ve heard this is dangerous so haven’t done it? And I’m getting really frustrated.

Is it ok for short periods of time or no?

Thank you