JSFiddle - React, Tailwind, and code Playground

HTML

<div class="wrapper">
    <div class="content">
        <p class="text">my css dynamic banner</p>
    </div>
</div>

CSS

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body {
    padding: 120px 50px;
}
.wrapper {
    position: relative;
    padding: 4px 0;
    background: #1589A1;
    display: inline-block;
    -webkit-transform: translate(-38%, 100%) rotate(-90deg);
    transform: translate(-38%, 100%) rotate(-90deg);
}
.content {
    padding: 17px 33px 17px 0;
    width: 100%;
    color: #fff;
    border: dashed #000;
    border-width: 2px 0;
    height: 62px;
}
.wrapper:after {
    content:'';
    position: absolute;
    top: 0;
    left: 0;
    border: solid transparent;
    border-width: 35px 35px 35px 0;
    border-right: 35px solid #1589A1;
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
}
.content:after {
    content:'';
    position: absolute;
    display: block;
    z-index: 1;
    left: -22px;
    top: 15px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    width: 38px;
    height: 38px;
    border: dashed #000;
    border-width: 0 0 2px 2px;
}
.text {
    font-size: 20px;
    text-transform: uppercase;
    z-index: 5;
    margin-bottom: 0;
    white-space: nowrap;
    font-family: Arial;
}