This example shows three columns that stack on small screens, become two columns on medium screens, and three columns on large screens. Colors and padding help see the columns clearly.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Responsive Columns Example</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<main class="container mt-4">
<section class="row">
<article class="col-12 col-md-6 col-lg-4 bg-primary text-white p-3 mb-3">
Column 1
</article>
<article class="col-12 col-md-6 col-lg-4 bg-success text-white p-3 mb-3">
Column 2
</article>
<article class="col-12 col-md-12 col-lg-4 bg-warning text-dark p-3 mb-3">
Column 3
</article>
</section>
</main>
</body>
</html>