Suzanne...we hung a really big picture over ours
Suzanne: attach the headboard to the wall. Lots of ideas here:
Or... this was easy --- I merely hung an old window behind my bed (see photo)
some adjustable bed frames have a ' T ' on the headboard ends.
these can be used using bolts and drilling holes in the wood
headboard frame / legs.
Do you mean one of those beds that raise up and down? if so you will have to use a French Cleat to fasten the headboard to the wall.... here is a home-made one.... https://www.youtube.com/watch?v=DmLQkRDOgOE
You can also buy French cleats on Amazon rated to the weight of anything to be hung on the wall.... https://www.amazon.com/s?k=french+cleat+for+headboard&crid=2EZF1YUL67MRG&sprefix=french+cleat+for+hea%2Caps%2C260&ref=nb_sb_ss_i_1_20