Whether you're setting your youth mattress on a foundation or a platform bed frame, the important thing to keep in mind is the total height of the bed (mattress + bed frame) to make sure your child is able to get in and out of bed safely.
If you plan to place your youth mattress on a bunk bed, make sure the upper edge of the guardrail is at least five inches above the mattress for maximum safety.