This could be done in a few ways, but I’m not sure which plan you are on. If it were me, I would create a scheduled backend workflow to run every X number of minutes.
Tell it to display/delete posts when current time > (post created date/time)+23 hours.