JSFiddle - React, Tailwind, and code Playground

HTML

<div class="block">
    <span>Чисто текст, чтоб почекать как уменьшается блок</span>
</div>

CSS

body{
    height: 100vh;
    position: relative;
}
.block{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: aqua;
}
.block > span{
    display: block;
    padding: 3px;
}

@media (max-width: 150px){ /* Тут твоя фиксированная ширина */
    .block{
        left: unset;
        right: 0;
        transform: translateY(-50%);
    }
}