In Bootstrap 5 prior 5.3 there is an issue that the css variables for breakpoints are missing, which was fixed (by me) with version 5.3. Up to version 5.3, you can use the bootstrap-detect-breakpoint ...