guiManager = (applyToModal) => {
    const guiOptions = globalObj._state._userConfig.guiOptions;
    const consentModalOptions = guiOptions && guiOptions.consentModal;
    const preferencesModalOptions = guiOptions && guiOptions.preferencesModal;

    if (applyToModal === 0) {
        setLayout(
            globalObj._dom._cm,
            ALL_CM_LAYOUTS,
            consentModalOptions,
            CLASS_CONSTANTS._cmPrefix,
            CLASS_CONSTANTS._box,
            'cm'
        );
    }

    if (applyToModal === 1) {
        setLayout(
            globalObj._dom._pm,
            ALL_PM_LAYOUTS,
            preferencesModalOptions,
            CLASS_CONSTANTS._pmPrefix,
            CLASS_CONSTANTS._box,
            'pm'
        );
    }
}
Add appropriate classes to modals and buttons
@param {0 | 1} applyToModal