I have a bed that looks like this, doesn’t have legs.
I was looking at bed risers, but they’re aimed for beds with legs. Also, the risers make the bed rise too high for my needs.
I only need to make the bed rise for about 2-inches so I can use an overbed table like .
The big question that prevents the best answer from being obvious is how the existing bed frame is constructed.
If the material is a compressed sawdust wood and that is the material supporting the entire load, like Ikea stuff, then you shouldn’t reduce the contact area with the floor too much. Simply notching the frame with a gentle radius in the area you need the legs to go under the bed would work, the smaller the amount of material removed, the better. So two half circles would be better than one 24" long rectangle with radiused corners. That could be done with a rotary tool or a fretsaw if you don’t have more appropriate tools to minimize tear-out. You would want to cover the cuts with some veneer to prevent the legs from eroding the frame.