function toggleMiniPlayerOn(width, height, mobileWidth, position) {
        const videoWrapper = playerInstance.domRef.wrapper;
        const targetWidth = width > MINIMUM_WIDTH ? width : MINIMUM_WIDTH;
        const targetHeight = height > MINIMUM_HEIGHT ? height : MINIMUM_HEIGHT;
        const targetMobileWidth = mobileWidth > MINIMUM_WIDTH_MOBILE ? mobileWidth : MINIMUM_WIDTH_MOBILE;

        originalWidth = extractSizeFromElement(videoWrapper, 'width', 'clientWidth');
        originalHeight = extractSizeFromElement(videoWrapper, 'height', 'clientHeight');

        videoWrapper.classList.add(
            FLUID_PLAYER_WRAPPER_CLASS,
            `${FLUID_PLAYER_WRAPPER_CLASS}--${position.trim().replace(/\s/, '-')}`
        );

        if (!isMobile) {
            videoWrapper.style.width = `${targetWidth}px`;
            videoWrapper.style.height = `${targetHeight}px`;
        } else {
            videoWrapper.style.width = `${targetMobileWidth}vw`;
            videoWrapper.style.height = `auto`;
            videoWrapper.style.aspectRatio = `16 / 9`;
        }

        createPlayerPlaceholder(originalWidth, originalHeight);
        adaptNonLinearSize(targetWidth, targetHeight, targetMobileWidth);
        adaptLinearSize();
        playerInstance.miniPlayerToggledOn = true;
        emitToggleEvent();
    }
Toggles the MiniPlayer on, stores the original size of the player.

@param {number} width
@param {number} height
@param {number} mobileWidth
@param {'top left'|'top right'|'bottom left'|'bottom right'} position