laying on back

24w pregnant here and it became quite uncomfortable to lay in bed on sides.When i’m sleeping i only can on right side but during the day my favorite position was laying on my bac. I heard it’s not safe and i want to know how much time i can spend on my back during the day